package com.woniu.util;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 分装响应码值的枚举 200 - 成功
 */
@AllArgsConstructor
@Getter
public enum ResponseEnum {

    SUCCESS(200, "ok"),
    FAIL(500,"FAIL"),
    LOGIN_ERROR(2000,"用户名不存在"),
    PARAM_ERROR(2001,"账号或密码错误"),
    NO_LOGIN(2002,"未登录"),
    SYS_BUSY(2003,"系统繁忙"),
    KILL_END(2004,"库存不足"),
    ;
    private Integer code;
    private String msg;

}
